﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


namespace MensUnoShop.Areas.Admin.Models
{
    public class ImportFactory
    {
        public static IImport SwitchImport(HttpPostedFileBase file, ImportType it)
        {
            IImport ii = null;
            switch (it)
            { 
                case ImportType.Product:
                    ii = new ProductImport(file, it);
                    break;
                case ImportType.Picture:
                    ii = new PictureImport(file, it);
                    break;
            }

            return ii;
        }
    }
}